package com.example.demo.controller;


import com.example.demo.JSONResult;
import com.example.demo.service.CoalmineoutputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.xml.bind.util.JAXBSource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hys
 * @since 2021-07-27
 */
@RestController
@RequestMapping("/coalmineoutput")
public class CoalmineoutputController {

    @Autowired
    private CoalmineoutputService coalmineoutputService;

    @PostMapping("/insertOutputData")
    public JSONResult insertOutputData() {
        try {
            coalmineoutputService.insertOutputData("E:\\7.2\\AnalogData\\CoalOutput\\1xx000002CLQK20100627152330.xml");
        } catch (Exception e) {
            throw e;
        }
        return JSONResult.success("success");
    }

}

